from sqlalchemy import *
from sqlalchemy.orm import *

engine = create_engine('sqlite:///tutorial.db', echo=False)
metadata = MetaData(engine)

scores_table = Table('scores', metadata,
    Column('id', Integer, primary_key=True),
    Column('author', String(40)),
    Column('title', String(40)),
)

class Score(object):
    pass

mapper(Score, scores_table)
Session = sessionmaker(bind=engine)

